const fs = require("fs");
const path = require("path");
const contentPath = path.resolve(__dirname, "./data.txt");

// 异步读取
fs.readFile(contentPath, (err, data) => {
  if (err) {
    console.log(err);
  }
  console.log(data.toString());
});
